<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/14
 * Time: 0:33
 */

namespace App\Http\Eloquent;


interface Repository
{
    /**
     * find one
     *
     * @param array $where
     * @param array $select
     * @param array $orderBy
     * @return mixed
     */
    public static function find($id = 0, $select = ['*']);

    /**
     * find first data
     * @return mixed
     */
    public static function first($where=[],$select=['*'],$orderBy=['id','desc']);
    
}